package cn.u313.repository;

import cn.u313.entry.TestEntry;
import cn.u313.entry.YanYuEntry;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

public interface YanYuEntryRepository extends JpaRepository<YanYuEntry, Integer>, JpaSpecificationExecutor<YanYuEntry> {
    @Query(nativeQuery = true,value = "SELECT * FROM `t_yanyu` where qq = :qq ")
    YanYuEntry byQQ(String qq);
}